﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Repositories;
using Permissions.Models;
using Permissions.PermissionssApp.Dto;

namespace Permissions.PermissionssApp
{
    public class PermissionssAppService : IPermissionssAppService
    {
        private readonly IRepository<Permissionss> _permissionssRepository;

        public PermissionssAppService(IRepository<Permissionss> permissionssRepository)
        {
            _permissionssRepository = permissionssRepository;
        }

        public void CreateEmployee(CreatePermissionssInput input)
        {
            throw new NotImplementedException();
        }

        public ListResultDto<PermissionssDto> GetPermissionss()
        {
            var employees = _permissionssRepository.GetAll();

            return new ListResultDto<PermissionssDto>(employees.MapTo<List<PermissionssDto>>());
        }

        public void UpdateEmployee(UpdatePermissionssInput input)
        {
            throw new NotImplementedException();
        }
    }
}
